<?php

abstract class Base {
    private	$header = "";
	private	$rooter = "";

	public function __construct($header, $rooter) {
		$this->header = $header;
		$this->rooter = $rooter;
	}
	
	public function write() {
		$this->writeHeader();
		$this->writeContent();
		$this->writeRooter();
	}

    private function writeHeader() {
		echo $this->header."<br/>";
	}

    private function writeRooter() {
		echo $this->rooter."<br/>";
	}

    protected abstract function writeContent();
}

?>